package cn.com.surker.base.controller;

import cn.com.surker.base.pump.entity.CastMode;
import cn.com.surker.base.pump.entity.PumpNorm;
import cn.com.surker.base.pump.service.CastModeService;
import cn.com.surker.base.pump.service.PumpNormService;
import cn.com.surker.common.AbstractController;
import cn.com.surker.spring.RestResultDto;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 泵送规格
 *
 * @author luotao
 * @date 2024/9/3
 */
@RestController
@RequestMapping("/pump/norm")
public class PumpNormController extends AbstractController {

	@Resource
	protected PumpNormService pumpNormService;

	/**
	 * 泵送规格列表
	 *
	 * @return
	 */
	@RequestMapping(value = "/list", method = RequestMethod.POST)
	@ResponseBody
	public RestResultDto list(String name) {
		List<PumpNorm> list = pumpNormService.findList(name);
		return RestResultDto.success(list);
	}

}
